package com.hoshiicloud.saleorder.service.refund;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.query.OmnipotentParam;
import com.hoshiicloud.common.query.OmnipotentWrapper;
import com.hoshiicloud.saleorder.entity.OrderMain;
import com.hoshiicloud.saleorder.entity.RefundOrder;
import com.hoshiicloud.saleorder.vo.refund.RefundOrderVo;

import java.util.List;

/**
 * 退款单(RefundOrder)表服务接口
 *
 * @author qry
 * @since 2019-08-22 11:00:16
 */
public interface RefundOrderService extends IService<RefundOrder> {
    Page<RefundOrderVo> getPage(Page<RefundOrder> page, QueryWrapper<RefundOrder> queryWrapper, String key);

    RefundOrder saveRefundOrder(RefundOrder entity);

    Boolean updateRefundOrder(RefundOrder entity);


    RefundOrder getRefundOrderById(Long id);

    List<RefundOrderVo> listRefundOrder(QueryWrapper<RefundOrder> q, String key);

    /**
     * 根据自定义条件查询退款单信息
     */
    List<RefundOrder> omniRefundOrder(List<OmnipotentWrapper> wrappers, String key);

    Boolean updateByParam(OmnipotentParam<RefundOrder> param);
}
